<?php
namespace App\Html;


use Illuminate\Support\Facades\DB;

class Html{

    public static function value($id){
       // $data        = DB::table('goods')
                     //->where('goods_id',$id)
                  //   ->get();
        //return $data;
    }

    public  function content(){
        $data     = DB::table('goods')->get();
        $retval = "";
        // $primary  = self::primary();
        foreach ($data as $value) {
            $retval .= $value ->description;

            /*                $retval .= "<a href='#'>" . PHP_EOL;
                            $vcss = $value->icon;*/
            /* $retval .= "<i class='$vcss'></i>" . PHP_EOL;
             $retval .= " <span>{$value->menu}</span>" . PHP_EOL;*/
            /*                $retval .= "</a>" . PHP_EOL;
                            $retval .= "</li>" . PHP_EOL;*/
        }
        // foreach ($pieces as $k) {



        //  }

        return $retval;
    }


}